<?php

namespace app\common\exception;

use think\Exception;

class AccessHandler extends Exception
{
    public function __construct()
    {
        header('Content-Type:application/json; charset=utf-8');
        exit(json_encode(['data' => '恶意获取数据', 'code' => config('code.common.evil')]));
    }
}
